package com.joysuch.wwyt.patrol.controller;


import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.core.quartz.ResetTimeSequenceBizCodesSeedJob;
import com.joysuch.wwyt.patrol.service.PatrolSnapshotPathService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author heqifeng
 * @since 2022-03-09
 */
@RestController
@RequestMapping("/patrol/patrol-snapshot-path")
public class PatrolSnapshotPathController {
    @Autowired
    private PatrolSnapshotPathService service;

    @GetMapping("getPath")
    public ResultBean getPathByTaskId(Long taskId) {
        return ResultBean.success(service.getPathByTaskId(taskId));
    }

}

